package me.tuyou.spring.boot.bean;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author tuyou_cd
 * @Date 2020/6/17 18:08
 */
@Component
@ConditionalOnProperty(name = "conditional.enable", havingValue = "true")
public class MyBean {

    public void sayHi() {
        System.out.println("myBean say hi");
    }
}
